package com.qixin.api.serviceimpl;


import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.qixin.api.bean.TotalMenuResourse;
import com.qixin.api.bean.TotalRole;
import com.qixin.api.bean.ZtreeBean;
import com.qixin.api.mapper.TotalMenuResourseMapper;
import com.qixin.api.service.TotalMenuResourseService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 菜单资源表 服务实现类
 * </p>
 *
 * @author 李许多
 * @since 2018-11-12
 */
@Service
public class TotalMenuResourseServiceImpl extends ServiceImpl<TotalMenuResourseMapper, TotalMenuResourse> implements TotalMenuResourseService {
    @Override
    public List<TotalMenuResourse> findMenuByRole(TotalRole totalRole) {
        return baseMapper.findMenuByRole(totalRole);
    }
    @Override
    public List<ZtreeBean> findMenuZtree() {
        return baseMapper.findMenuZtree();
    }
}
